package com.atguigu.blog.article.feign;

import com.atguigu.blog.article.entity.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "blog-comment" , fallbackFactory = CommentFeignFallbackFactory.class)
//@FeignClient(value = "blog-comment" )
public interface CommentFeignClient {

    @GetMapping("/comment/article/list")
    List<Comment> queryCommentList(@RequestParam Integer articleId);
}
